home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Dec 3, 1999
- //
- //
- // Description:
- // The optional stuff for the subd's.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
- global proc subdOptionalDagMenuProc( string $parent, string $item )
- {
- setParent -m $parent;
-
- menuItem -l "Refine"
- -annotation "Refine Selected Components" -echoCommand true
- -c ("subdivCreateRegion; setAttr " + $item + ".displayFilter 0")
- setRefineRegionItem;
-
- string $menu = `menuItem -subMenu true -aob true -l "Display Level"`;
-
- // Get the maximal level on this surface.
- int $maxLevel = `subdiv -q -deepestLevel $item`;
-
- int $i;
- for( $i=0; $i<=$maxLevel; $i+=1 ) {
- menuItem -l $i
- -annotation ("Set Component Display Level To " + $i)
- -c ("setAttr \"" + $item + ".displayLevel\" " + $i)
- ;
- }
-
- // Add menu item for changing the display filter
- setParent -m $parent;
- $menu = `menuItem -subMenu true -aob true -l "Display Filter"`;
- menuItem -l "All"
- -annotation ("Set Component Display Filter To All")
- -c ("setAttr \"" + $item + ".displayFilter\" 0;")
- ;
- menuItem -l "Edited"
- -annotation ("Set Component Display Filter To Edited")
- -c ("setAttr \"" + $item + ".displayFilter\" 1;")
- ;
-
- setParent -m $parent;
- }
-